import { ChargeType } from "@/types/enum";
import { defineStore } from "pinia";

export const useChargeStore = defineStore("charge", {
  state: () => ({
    chargeType: ChargeType.Scan,
  }),
  actions: {
    toggleChargeType() {
      this.chargeType =
        this.chargeType === ChargeType.Scan
          ? ChargeType.Shoudong
          : ChargeType.Scan;
    },
  },
});
